package com.xjscrm.console.chat.frame.send;

import com.xjscrm.console.chat.enums.ChatMsgType;
import com.xjscrm.console.chat.frame.dto.ChatTagDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.LinkedList;
import java.util.List;

/**
 * @author mingyang.chen create in 2024/3/12 13:47
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class SPullConversationResultMsg extends SResultMsg {

    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("客户昵称")
    private String name;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("性别（0-未知；1-男；2-女）")
    private Integer gender;

    @ApiModelProperty("称呼")
    private String nickname;

    @ApiModelProperty("状态（0-拉黑，1-正常）")
    private Integer status;

    @ApiModelProperty("微信ID")
    private String wxid;

    @ApiModelProperty("微信头像")
    private String headImgUrl;

    @ApiModelProperty("添加场景（0-未知；1-扫描二维码；2-手机号搜索；3-好友分享名片；4-群内）")
    private Integer scene;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("添加方式（0-未知; 1-客户主动添加；2-机器人主动添加）")
    private Integer addType;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("同步时间")
    private Integer pushTime;

    @ApiModelProperty("企业id")
    private String corpId;

    @ApiModelProperty("创建时间")
    private Integer createTime;

    @ApiModelProperty("企业标签集合")
    private List<ChatTagDTO> companyTags = new LinkedList<>();

    @ApiModelProperty("个人标签集合")
    private List<ChatTagDTO> selfTags = new LinkedList<>();

    public SPullConversationResultMsg() {
        this.setResultType(ChatMsgType.s_pull_conversation_result.getCode());
        this.setResultTypeDesc(ChatMsgType.s_pull_conversation_result.getDesc());
    }
}
